/**
 * 
 */
package GUI;

import java.awt.LayoutManager;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JCheckBox;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.Color;

/**
 * @author aviat
 *
 */
public class CreateEvent extends JPanel {

	private static final long serialVersionUID = 1L;
	private JTextField priceTextField;
	private JButton btnCreate;
	private JButton btnBack;
	private JLabel lblPlace;
	private JTextField placeTextField;
	private JLabel iconlabel;
	private JLabel lblTime;
	private JTextField eTimetextField;

	/**
	 * Constructor
	 */
	public CreateEvent() {
		
		setLayout(null);
		priceTextField = new JTextField();
		placeTextField = new JTextField();
		btnCreate = new JButton("Create");
		btnCreate.setIcon(new ImageIcon(CreateEvent.class.getResource("/resources/create.png")));
		btnCreate.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack = new JButton("Back");
		btnBack.setIcon(new ImageIcon(CreateEvent.class.getResource("/resources/back22.png")));
		eTimetextField = new JTextField();
		initialize();
	}

	private void initialize() {

		JLabel lblCreateEvent = new JLabel("Create Event");
		lblCreateEvent.setForeground(new Color(0, 204, 255));
		lblCreateEvent.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblCreateEvent.setBounds(10, 11, 111, 35);
		add(lblCreateEvent);
		
		JLabel lblPrice = new JLabel("price");
		lblPrice.setForeground(Color.WHITE);
		lblPrice.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblPrice.setBounds(182, 259, 54, 27);
		add(lblPrice);
		
		priceTextField.setBounds(260, 260, 126, 27);
		add(priceTextField);
		priceTextField.setColumns(10);
		
		btnCreate.setBounds(260, 345, 126, 27);
		add(btnCreate);
		
		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 101, 27);
		add(btnBack);
		
		lblPlace = new JLabel("place");
		lblPlace.setForeground(Color.WHITE);
		lblPlace.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblPlace.setBounds(182, 123, 54, 27);
		add(lblPlace);
		
		placeTextField.setBounds(260, 124, 126, 27);
		add(placeTextField);
		placeTextField.setColumns(10);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		lblTime = new JLabel("Time");
		lblTime.setForeground(Color.WHITE);
		lblTime.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblTime.setBounds(182, 185, 54, 27);
		add(lblTime);
		
		
		eTimetextField.setBounds(260, 186, 126, 27);
		add(eTimetextField);
		eTimetextField.setColumns(10);
		
		iconlabel = new JLabel("");
		iconlabel.setForeground(Color.WHITE);
		iconlabel.setFont(new Font("Tahoma", Font.BOLD, 12));
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
	}


	/**
	 * @return the priceTextField
	 */
	public JTextField getPriceTextField() {
		return priceTextField;
	}

	/**
	 * @param priceTextField the priceTextField to set
	 */
	public void setPriceTextField(JTextField priceTextField) {
		this.priceTextField = priceTextField;
	}



	/**
	 * @return the btnCreate
	 */
	public JButton getBtnCreate() {
		return btnCreate;
	}

	/**
	 * @return the btnBack
	 */
	public JButton getBtnBack() {
		return btnBack;
	}

	/**
	 * @return the placeTextField
	 */
	public JTextField getPlaceTextField() {
		return placeTextField;
	}

	/**
	 * @param placeTextField the placeTextField to set
	 */
	public void setPlaceTextField(JTextField placeTextField) {
		this.placeTextField = placeTextField;
	}
	

	/**
	 * @return the eTimetextField
	 */
	public JTextField geteTimetextField() {
		return eTimetextField;
	}

	/**
	 * @param eTimetextField the eTimetextField to set
	 */
	public void seteTimetextField(JTextField eTimetextField) {
		this.eTimetextField = eTimetextField;
	}

	/**
	 * @param btnCreate the btnCreate to set
	 */
	public void setBtnCreate(JButton btnCreate) {
		this.btnCreate = btnCreate;
	}

	/**
	 * @param btnBack the btnBack to set
	 */
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}


}
